import defaultSettings from '@/settings'

const title = defaultSettings.title || 'Vue Admin'

export default function getPageTitle (routeName) {
  if (routeName) {
    return `${routeName} - ${title}`
  }
  return title
}
